import fetch from 'utils/fetch';
//获取渠道接口
export function getChannels() {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getChannels',
        method: 'get'
    });
}
//分页
export function page(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getCustomerInfo',
        method: 'get',
        params: query
    });
}
// 导出
export function pageExport(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getCustomerExport',
        method: 'get',
        params: query
    });
}
// 查看
export function getCustomerInfoDetail(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getCustomerInfoDetail',
        method: 'post',
        data: obj
    });
}
// 获取包名
export function getDictByChannelAndPackageName(paramsObj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getDictByChannel',
        method: 'post',
        data: paramsObj
    })
}
// 黑名单查询
export function checkHitBlackList(params) {
    return fetch({
        url: '/api/admin/loanCommon/checkHitBlackList',
        method: 'get',
        params
    })
}
// 获取userId
export function getOrderIdUuidByUserId(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/getOrderIdUuidByUserId',
        method: 'get',
        params: query
    })
}
// 点击导出
export function customerDetail(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/export/customerDetail',
        method: 'post',
        data: obj
    });
}
// 查询导出url
export function findExcelAddress() {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/customerDetail/find/export/url',
        method: 'get'
    })
}